package com.teamwhole.modules.sys.dao;

import java.util.List;

import com.teamwhole.core.persistence.dao.CrudDao;
import com.teamwhole.core.persistence.annotation.MyBatisDao;
import com.teamwhole.modules.sys.entity.Role;

@MyBatisDao
public interface RoleDao extends CrudDao<Role>{

	Role getByName(Role r);

	List<Role> findAllList(Role role);

	List<Role> getList(Role model);
	
	void insertRole(Role role);
	
	void updateRole(Role role);
	
	void deleteRole(Role role);
	
	void insertRoleMenu(String roleId,String menuId);
	
	void deleteRoleMenus(Role role);

    void deleteRoleMenu(Role role);

    void insertRoleMenu(Role role);

    void deleteRoleDept(Role role);

    void insertRoleDept(Role role);

}
